import { get, post } from '@/utils/request'
export const getActivityList = (params) => {
    return get('getActivityList.json', params)
}

export const updateActivityStockLimit = (data) => {
    return post('updateActivityStockLimit.json', data)
}

export const getActivityOrders = (params) => {
    return get('getActivityOrders.json', params)
}
export const getActivityItemList = (params) => {
    return get('getActivityItemList.json', params)
}
export const doInvalidActivityProduct = (data) => {
    return post('doInvalidActivityProduct.json', data)
}
export const addActivity = (data) => {
    return post('addActivity.json', data)
}
export const isActivityNameExist = (params) => {
    return get('isActivityNameExist.json', params)
}
export const doCancelActivity = (data) => {
    return post('doCancelActivity.json', data)
}
export const updateActivity = (data, containfile) => {
    return post('updateActivity.json', data, containfile)
}
